home *** CD-ROM | disk | FTP | other *** search
/ Programming Windows 95 with MFC / Programming Windows 95 with MFC (Microsoft Programming Series)(097-0001465)(1996).iso / CODE / Chap09 / Paint6 / Paint6View.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-04-05  |  801 b   |  32 lines

  1. //***********************************************************************
  2. //
  3. //  Paint6View.h
  4. //
  5. //***********************************************************************
  6.  
  7. class CPaintView : public CScrollView
  8. {
  9.     DECLARE_DYNCREATE (CPaintView)
  10.  
  11. private:
  12.     CPoint m_ptFrom;
  13.     CPoint m_ptTo;
  14.  
  15.     CPaintDoc* GetDocument () { return (CPaintDoc*) m_pDocument; }
  16.     void InvertLine (CDC*, CPoint, CPoint);
  17.  
  18. public:
  19.     virtual void OnInitialUpdate ();
  20.  
  21. protected:
  22.     virtual void OnDraw (CDC*);
  23.     virtual void OnUpdate (CView*, LPARAM, CObject*);
  24.  
  25.     afx_msg void OnLButtonDown (UINT, CPoint);
  26.     afx_msg void OnMouseMove (UINT, CPoint);
  27.     afx_msg void OnLButtonUp (UINT, CPoint);
  28.     afx_msg void OnContextMenu (CWnd*, CPoint);
  29.  
  30.     DECLARE_MESSAGE_MAP ()
  31. };
  32.